package com.t235.gc.order.service;

import com.t235.gc.entity.GarbageRecyclingDetailOrder;

import java.util.List;

/**
 * 垃圾回收详情订单表(GarbageRecyclingDetailOrder)表服务接口
 *
 * @author makejava
 * @since 2021-03-24 08:45:29
 */
public interface GarbageRecyclingDetailOrderService {

    /**
     * 通过ID查询单条数据
     *
     * @param detailorderid 主键
     * @return 实例对象
     */
    GarbageRecyclingDetailOrder queryById(Long detailorderid);

    /**
     * 查询多条数据
     *
     * @param offset 查询起始位置
     * @param limit  查询条数
     * @return 对象列表
     */
    List<GarbageRecyclingDetailOrder> queryAllByLimit(int offset, int limit);

    /**
     * 新增数据
     *
     * @param garbageRecyclingDetailOrder 实例对象
     * @return 实例对象
     */
    GarbageRecyclingDetailOrder insert(GarbageRecyclingDetailOrder garbageRecyclingDetailOrder);

    /**
     * 修改数据
     *
     * @param garbageRecyclingDetailOrder 实例对象
     * @return 实例对象
     */
    GarbageRecyclingDetailOrder update(GarbageRecyclingDetailOrder garbageRecyclingDetailOrder);

    /**
     * 通过主键删除数据
     *
     * @param detailorderid 主键
     * @return 是否成功
     */
    boolean deleteById(Long detailorderid);

}
